package com.csun.cmny.provider.service.impl;

import com.csun.cmny.core.support.BaseService;
import com.csun.cmny.provider.dao.OmcWelfareMessageMapper;
import com.csun.cmny.provider.model.domain.OmcWelfareMessage;
import com.csun.cmny.provider.service.OmcWelfareMessageService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;

@Service
@Slf4j
@Transactional
public class OmcWelfareMessageServiceImpl extends BaseService<OmcWelfareMessage> implements OmcWelfareMessageService {

    @Resource
    private OmcWelfareMessageMapper omcWelfareMessageMapper;


    @Override
    public int updateById(OmcWelfareMessage omcWelfareMessage) {
        return omcWelfareMessageMapper.updateByPrimaryKey(omcWelfareMessage);
    }
}
